package edu.neu.cs6515.xml;

import javax.xml.bind.annotation.XmlAttribute;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * Represents the XML object for an illegal move in the following format:
 * {@code
 * <bad reason=FreeShapedString />
 * }
 * Implementations of the {@link Rule} class will return a problem-specific string
 */
@NoArgsConstructor
@AllArgsConstructor
public final class Bad {
    
    private String reason;
    
    @XmlAttribute
    public String getReason() {
        return reason;
    }
    
    public void setReason(final String reason) {
        this.reason = reason;
    }

}
